import os

l = [c for c in os.listdir("H:")]
print(l)

d = {"a": "小明", "b": "小红", "c": "小云", "d": "小火", "e": "小兰"}
print(d)
l = [k + " = " + v for k, v in d.items()]
print(l)

l=['hello','world','love','sex','fun','ball','boy',11]
l=[s.upper() for s in l if isinstance(s,str)]
print(l)
